app.service("goodsCategoryService",function ($http) {
    //查询所有分类
    this.findAll=function () {
        return $http.get("../goodsCategoryController/findAll.do");
    }
    //通过父级 id 查询
    this.findByParentId=function () {
        return $http.get("../goodsCategoryController/findByParentId.do");
    }
});